<!--  -->
<template>
    <div class="overflow-hidden">
        <div data-tauri-drag-region class="titlebar bg-gradient-to-br from-black to-gray-600">
            <div data-tauri-drag-region style="
          margin-right: auto;
          display: inline-flex;
          justify-content: center;
          align-items: center;
          margin-left: 10px;
          font-size: 10pt;
        ">
                {{ info }}
            </div>
            <div class="titlebar-button" id="titlebar-minimize">
                <el-icon>
                    <Minus />
                </el-icon>
            </div>
            <div class="titlebar-button" id="titlebar-maximize">
                <el-icon>
                    <Plus />
                </el-icon>
            </div>
            <div class="titlebar-button" id="titlebar-close">
                <el-icon>
                    <Close />
                </el-icon>
            </div>
        </div>
        <iframe src="https://www.baidu.com" style="
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background-color: #000000;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.5;"></iframe>

    </div>
</template>

<script>
import { appWindow, WebviewWindow } from "@tauri-apps/api/window";
import { emit, listen } from '@tauri-apps/api/event'
import { getClient, ResponseType } from '@tauri-apps/api/http';
export default {
    data() {
        return {
            loading: false,
            dialogVisible: false,
            List: [],
            queryParams: {
                pageNum: 1,
                pageSize: 10,
                sid: sessionStorage.getItem('simulationId')
            },
        };
    },

    components: {},

    computed: {},

    mounted() {
        document
            .getElementById("titlebar-minimize")
            .addEventListener("click", () => appWindow.minimize());
        document
            .getElementById("titlebar-maximize")
            .addEventListener("click", () => appWindow.toggleMaximize());
        document
            .getElementById("titlebar-close")
            .addEventListener("click", () => appWindow.close());

    },

    created() { },

    methods: {}
}

</script>
<style lang='scss' scoped></style>